package com.ruiysoft.service.statement.consts;



public enum StatementAuditStatus {
	PENDING(1, "待审核"), SUCCESS(2, "审核通过"),FAIL(3, "审核不通过");

	private int index;
	private String name;

	private StatementAuditStatus(int index, String name) {
		this.index = index;
		this.name = name;
	}

	public static String getName(int index) {
		for (StatementAuditStatus s : StatementAuditStatus.values()) {
			if (s.getIndex() == index) {
				return s.getName();
			}
		}
		return null;
	}
	public static StatementAuditStatus getEnum(int index) {
		for (StatementAuditStatus s : StatementAuditStatus.values()) {
			if (s.getIndex() == index) {
				return s;
			}
		}
		return null;
	}
	public int getIndex() {
		return this.index;
	}

	public String getName() {
		return this.name;
	}
}
